| | |
| |
|
(since C99) |
| | |
| |
|
(since C99) |
| | |
| |
|
(since C99) |
| | |
Computes the complex conjugate of z by reversing the sign of the imaginary part.
[edit] Parameters
[edit] Return value
The complex conjugate of z.
[edit] Example
#include <stdio.h>
#include <complex.h>
int main()
{
double complex z = conj(1.0 + 2.0*I);
printf("%f%+fi\n", creal(z), cimag(z));
return 0;
}
Output: